package com.frxuexi.mymvi

import com.frxuexi.lib_http.HttpType
import com.frxuexi.lib_http.NetworkFactory
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject

@OptIn
class AppsRepository @Inject constructor() {
    val apiService by lazy { NetworkFactory.factory(HttpType.TOKEN).create(ApiService::class.java) }

    fun getApps():Flow<AppsEntity>{
        return apiService.getApps()
    }
}